/**
 * related to caseInfo.cell.topTitle.ui
 * 
 * @Author : ln007
 * @Timestamp : 2017-05-03
 */
var log=require("util/log")
var page = sm("do_Page")
var Controller = require("core/controller")
Controller({
	name : 'index',
	mapping : {
		"case_prodname.text" : "productName",
		"case_oplimit.text" : "overDueSumAmount",
		"case_eplimit.text" : "cupoEarlymoney",
		"case_pmlimit.text" : "promiseAmt",
		"case_pmdate.text" : "promiseDate",
		"case_numb.text" : "cupoCasenum",
		"case_bcnumb.text" : "cupoBatch",
		"case_ctalmoney.text" : "contractAmount",
		"case_etpname.text" : "cupoPrincipal",
		"do_ALayout_3.visible" : "showPromise"		
	},
	data : {
		
	},
	ui : {
		root : '$',
		layout_detail:"layout_detail",
		do_ALayout_3:"do_ALayout_3"
	},
	event : {
		"layout_detail": {
			"touch" : function() {
				this.fireMyorder();
			}
		},
		"ca_layout":{
			"touch":function(){
				
			}
		}
	},
	methods : {	
		fireMyorder:function() {
			page.fire("repDetail");
		}
	},
	loaded : function() {
	}
})
